<form>
  <h3 mat-dialog-title>
    {{title}}
  </h3>
  <mat-dialog-content>
    <mat-form-field class="full-width">
      <input matInput placeholder="任务内容" value="">
    </mat-form-field>

    <!-- radio-button -->
    <mat-radio-group class="full-width">
      <mat-radio-button *ngFor="let priority of priorities" [value]="priority.value">
        {{ priority.label }}
      </mat-radio-button>
    </mat-radio-group>



    <mat-form-field>
      <input matInput [matDatepicker]="dueDatepicker" placeholder="过期时间">
      <mat-datepicker-toggle matSuffix [for]="dueDatepicker"></mat-datepicker-toggle>
      <mat-datepicker #dueDatepicker></mat-datepicker>
    </mat-form-field>
    <mat-form-field>
      <input matInput [matDatepicker]="reminderDatepicker" placeholder="提醒时间">
      <mat-datepicker-toggle matSuffix [for]="reminderDatepicker"></mat-datepicker-toggle>
      <mat-datepicker #reminderDatepicker></mat-datepicker>
    </mat-form-field>
  </mat-dialog-content>

  <div mat-dialog-actions>
    <button type="button" mat-raised-button color="primary" (click)="onClick()">保存</button>
    <button type="button" mat-raised-button mat-button mat-dialog-close>关闭</button>
  </div>
</form>
